package cn.imvc.app.models;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import cn.imvc.app.entities.ExpressCompany;
import cn.imvc.app.repositories.ExpressCompanyRepository;
import cn.imvc.core.ModelUtil;
import cn.imvc.data.domain.ViewRequest;
/**
 * 
 * @author zhanghy
 * @date 2016年8月27日上午9:37:39
 *
 */
@Service
public class ExpressCompanyModelImpl implements ExpressCompanyModel{

	@Autowired
	ExpressCompanyRepository expressCompanyRepository;
	public Page<ExpressCompany> find(ViewRequest viewRequest) {
		
		return expressCompanyRepository.findAll(ModelUtil.OrderByIdDesc(viewRequest));
	}

}
